package com.jxlg.bean;

/**
 * AbstractDDictinfoId entity provides the base persistence definition of the
 * DDictinfoId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractDDictinfoId implements java.io.Serializable
{

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 7157863535625772879L;
	private Integer xmxh;
	private String xxdm;

	// Constructors

	/** default constructor */
	public AbstractDDictinfoId()
	{
	}

	/** full constructor */
	public AbstractDDictinfoId(Integer xmxh, String xxdm)
	{
		this.xmxh = xmxh;
		this.xxdm = xxdm;
	}

	// Property accessors

	public Integer getXmxh()
	{
		return this.xmxh;
	}

	public void setXmxh(Integer xmxh)
	{
		this.xmxh = xmxh;
	}

	public String getXxdm()
	{
		return this.xxdm;
	}

	public void setXxdm(String xxdm)
	{
		this.xxdm = xxdm;
	}

	public boolean equals(Object other)
	{
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractDDictinfoId))
			return false;
		AbstractDDictinfoId castOther = (AbstractDDictinfoId) other;

		return ((this.getXmxh() == castOther.getXmxh()) || (this.getXmxh() != null
				&& castOther.getXmxh() != null && this.getXmxh().equals(
				castOther.getXmxh())))
				&& ((this.getXxdm() == castOther.getXxdm()) || (this.getXxdm() != null
						&& castOther.getXxdm() != null && this.getXxdm()
						.equals(castOther.getXxdm())));
	}

	public int hashCode()
	{
		int result = 17;

		result = 37 * result
				+ (getXmxh() == null ? 0 : this.getXmxh().hashCode());
		result = 37 * result
				+ (getXxdm() == null ? 0 : this.getXxdm().hashCode());
		return result;
	}

}